package com.atwl.school_system.mapping;

import com.atwl.school_system.bean.Banner;
import com.atwl.school_system.bean.OrderInfo;
import com.atwl.school_system.bean.vo.OrderInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDao {

    void createOrder(@Param("order") OrderInfo orderInfo);

    OrderInfo getOrder(String uuid);

    void updateOrder(@Param("order") OrderInfo orderInfo);

    boolean deleteOrder(@Param("uuid") String uuid);

    List<OrderInfo> getOrderByParam(@Param("uuid") String uuid, @Param("username") String username, @Param("phone") String phone, @Param("status") Integer status);

    List<OrderInfo> getOrderByUserId(@Param("userId") String userId, @Param("status") Integer status);
}
